package com.hnevc.xiewenguang;

import java.util.Random;

public class Example01 {
    public static void main(String[] args) {
        int[][] a = new int[30][5];
        int[] b = new int[30];
        for(int i=0;i < a.length;i++){
            System.out.print("第"+(i+1)+"个学生的5门成绩:\t");
            int count=0;
            for(int j=0;j< a[i].length;j++){
                do{
                    a[i][j] = new Random().nextInt(101);
                }while(a[i][j] < 60);

                count += a[i][j];
                System.out.print(a[i][j]+"\t");
            }
            count = count/5;
            b[i] = count;
            System.out.println("");
            System.out.println("第"+(i+1)+"个学生的5门成绩的平均分为:\t"+b[i]);
            System.out.println();
        }

        for(int i =0;i<b.length;i++){
            System.out.println("第"+(i+1)+"个学生的5门成绩的平均分为:\t"+b[i]);

        }
    }
}
